package ffmpeg

import "errors"

type ExecError struct {
	Err  error
	Echo string
}

func (e ExecError) Error() string {
	return e.Err.Error()
}

func (e ExecError) Is(err error) bool {
	return errors.Is(e.Err, err)
}

func (e ExecError) As(target any) bool {
	return errors.As(e.Err, target)
}

var ErrOutputFileMustBeSpecified = errors.New("at least one output file must be specified")
var ErrInvalidArgument = errors.New("invalid argument")
var ErrFfmpegFileNotExist = errors.New("ffmpegFile not exist")
